<template>
  <div class="HotFM">
    <div class="HotFM_header">
      <h3 class="HotFM_title">热门FM</h3>
      <div class="more">更多 ></div>
    </div>
    <ul class="HotFM_content">
      <li>
        <div class="img_wrapper">
          <img src="./images/1.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>KTV必点曲</span>
      </li>
      <li>
        <div class="img_wrapper">
          <img src="./images/2.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>中文DJ</span>
      </li>
      <li>
        <div class="img_wrapper">
          <img src="./images/3.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>百听不厌英文歌</span>
      </li>
      <li>
        <div class="img_wrapper">
          <img src="./images/4.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>KTV必点曲</span>
      </li>
      <li>
        <div class="img_wrapper">
          <img src="./images/5.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>广场舞</span>
      </li>
      <li>
        <div class="img_wrapper">
          <img src="./images/6.jpg" alt="" />
          <div class="mask">
            <div class="stop_btn"></div>
          </div>
        </div>
        <span>安静</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "HotFM",
};
</script>

<style lang="less" scoped>
.HotFM {
  width: 1000px;
  height: 266px;
  margin: 0 auto;
}

.HotFM .HotFM_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  margin-top: 60px;
  margin-bottom: 20px;
}

.HotFM_header h3 {
  font-size: 26px;
  font-weight: 500;
  color: #000000;
  cursor: default;
}

.HotFM_header .more {
  color: #858585;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
}

.HotFM_header .more:hover {
  color: #0badff;
}

.HotFM_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.HotFM_content .img_wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.img_wrapper img {
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s;
}

.HotFM_content .img_wrapper:hover img {
  transform: scale(1.05);
}

.img_wrapper .mask {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.HotFM_content .img_wrapper:hover .mask {
  display: block;
}

.HotFM_content .mask .stop_btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  background: url(./images/jx7.png) no-repeat;
  background-size: 100%;
  opacity: 0.9;
}

.HotFM_content li span {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  display: block;
  height: 40px;
  margin-top: 6px;
  word-break: break-all;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}
</style>
